# [ Startmenu Animation ( BACKUP ) ]

	# [ LOOP TILL INTERACTED ]
		execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 1 run data modify entity @s item.tag.CustomModelData set value 1
		execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 2 run data modify entity @s item.tag.CustomModelData set value 2
		execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 3 run data modify entity @s item.tag.CustomModelData set value 3
		# [ DETECT INTERACTION ]
			execute as @e[tag=STARTMENU,type=interaction,nbt={attack:{}}] run tag @s add Interacted
			execute as @e[tag=STARTMENU,type=interaction,nbt={interaction:{}}] run tag @s add Interacted
		execute as @e[tag=STARTMENU,type=interaction] if score #Startmenu Frame matches 3 unless entity @s[tag=Interacted] run scoreboard players set #Startmenu Frame 0
		
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 4 run data modify entity @s item.tag.CustomModelData set value 4
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 4 if score @s ID = @p ID run stopsound @p * minecraft:music_disc.cat
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 4 run playsound minecraft:block.amethyst_block.resonate ambient @p ~ ~ ~ 2 0
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 5 run data modify entity @s item.tag.CustomModelData set value 5
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 6 run data modify entity @s item.tag.CustomModelData set value 6
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 7 run data modify entity @s item.tag.CustomModelData set value 7
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 20 run data modify entity @s item.tag.CustomModelData set value 8
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 21 run data modify entity @s item.tag.CustomModelData set value 9
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 21 if score @s ID = @p ID run title @p times 0 1t 2s
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 21 if score @s ID = @p ID run title @p title "\uE000"
		
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches 22.. run scoreboard players set #Startmenu Frame -1
	
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches -1 if score @s ID = @p ID run tag @p add player
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches -1 if score @s ID = @p ID run tag @p remove startmenu.tick
	
	execute as @e[tag=STARTMENU] at @s if score #Startmenu Frame matches -1 run kill @s
	# execute at @e[tag=startmenu.tick] run particle dust 0 0 0 5 ~ ~1 ~1 1 1 0 0 50
	# execute as @e[tag=startmenu.tick,y_rotation=-90..] run title @p times 0 1s 10t
	# execute as @e[tag=startmenu.tick,y_rotation=..90] run title @p times 0 1s 10t
	# execute as @e[tag=startmenu.tick,y_rotation=-90..] run title @s title "\uE000"
	# execute as @e[tag=startmenu.tick,y_rotation=..90] run title @s title "\uE000"
	scoreboard players add #Startmenu Frame 1
	
# [ LOOP ]
	execute if entity @e[tag=STARTMENU] run schedule function main:misc/startmenu/animation 3t
	